﻿/* PN264 - A Parallel H.264 Encoding Utility
 * Copyright © 2009 PN264 Development Team
 *
 * This software is released the terms and conditions of the MIT License,
 * a copy of which can be found in the License.txt file.
 *
 * Contributors:
 * Will 'AnarkiNet' Shelley (AnarkiNet@gmail.com)
 */
using System;

namespace PN264
{ 
    /// <summary>
    /// Represents event data for <see cref="WorkerPool"/> notification events. This class is immutable. This class cannot be inherited.
    /// </summary>
    public sealed class WorkerEventArgs : EventArgs
    {
        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkerEventArgs"/> class.
        /// </summary>
        /// <param name="worker">The <see cref="Worker"/> that was created, shutdown, or otherwise related to the event.</param>
        public WorkerEventArgs(Worker worker)
        {
            this.worker = worker;
        }
        #endregion
        #region Fields
        private readonly Worker worker;
        #endregion
        #region Properties
        /// <summary>
        /// Gets the <see cref="Worker"/> that was created, shutdown, or otherwise related to the event.
        /// </summary>
        public Worker Worker
        {
            get
            {
                return this.worker;
            }
        }
        #endregion
    }
}
